package com.wicket.okrcomponent.integration.dto;

import com.wicket.okrcomponent.common.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import javax.validation.constraints.NotNull;
import lombok.Data;

/**
 * @desc MemberVirtualImageDto
 * @使用场景
 */
@Data
public class MemberVirtualImageDto extends BaseDto implements Serializable {

  /**
   * 身份人员选用虚拟形象关系ID
   */
  @ApiModelProperty("身份人员选用虚拟形象关系ID")
  private String memberVirtualImageId;

  /**
   * 选用虚拟形象ID
   */
  @ApiModelProperty("选用虚拟形象ID")
  private String virtualImageId;

  /**
   * 身份人员ID
   */
  @ApiModelProperty("身份人员ID")
  private String originalRoleMemberId;

  /**
   * 冗余个人账号ID
   */
  @ApiModelProperty("冗余个人账号ID")
  private String userId;

  /**
   * 冗余使用场景类型编码 SYSTEM:系统消息
   */
  @ApiModelProperty("冗余使用场景类型编码")
  private String sceneTypeCode;

  /**
   * 冗余是否自定义形象 TRUE:是 FALSE:否
   */
  @ApiModelProperty("冗余是否自定义形象")
  private String isCustomImage;

  /**
   * 是否已启用 TRUE:是 FALSE:否
   */
  @ApiModelProperty("是否已启用")
  private String isOpen;

  /**
   * 启用时间
   */
  @ApiModelProperty("启用时间")
  private Date openTime;

  /**
   * 主体生命周期 CURRENTLY_VALID:当前有效 EDITING:正在编辑 ARCHIVING:历史存档
   */
  @ApiModelProperty("主体生命周期")
  private String subjectLifeCycle;

  /**
   * 操作人就职记录ID
   */
  @ApiModelProperty("操作人就职记录ID")
  private String operationInductionId;

  /**
   * 操作时间
   */
  @ApiModelProperty("操作时间")
  private Date operateTime;

  /**
   * 虚拟形象名称
   */
  @ApiModelProperty("虚拟形象名称")
  private String virtualImageName;

  /**
   * 虚拟形象图片
   */
  @ApiModelProperty("虚拟形象图片")
  private String virtualImage;

  /**
   * 虚拟形象简介
   */
  @ApiModelProperty("虚拟形象简介")
  private String virtualImageDesc;

  /**
   * 人物经典语句
   */
  @ApiModelProperty("人物经典语句")
  private String characterClassicPhrase;

  /**
   * 使用场景子类型 STRONG_REMINDER_BY_ASSISTANT:助手强提醒 CHAT_VIRTUAL_IMAGE:沟通形象 MESSAGE-AVATAR:消息头像
   */
  @ApiModelProperty("使用场景子类型")
  private String sceneSubTypeCode;

  /**
   * 虚拟形象展示用途类型 SELF_COGNITION:自醒 OTHER_COGNITION:他醒
   */
  @ApiModelProperty("虚拟形象展示用途类型")
  private String virtualImageViewType;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    MemberVirtualImageDto that = (MemberVirtualImageDto) o;
    return (
      memberVirtualImageId == that.memberVirtualImageId &&
      virtualImageId == that.virtualImageId &&
      originalRoleMemberId == that.originalRoleMemberId &&
      userId == that.userId &&
      sceneTypeCode == that.sceneTypeCode &&
      isCustomImage == that.isCustomImage &&
      isOpen == that.isOpen &&
      openTime == that.openTime &&
      subjectLifeCycle == that.subjectLifeCycle &&
      operationInductionId == that.operationInductionId &&
      operateTime == that.operateTime &&
      virtualImageName == that.virtualImageName &&
      virtualImage == that.virtualImage &&
      virtualImageDesc == that.virtualImageDesc &&
      characterClassicPhrase == that.characterClassicPhrase &&
      sceneSubTypeCode == that.sceneSubTypeCode &&
      virtualImageViewType == that.virtualImageViewType
    );
  }

  @Override
  public int hashCode() {
    return Objects.hash(
      super.hashCode(),
      memberVirtualImageId,
      virtualImageId,
      originalRoleMemberId,
      userId,
      sceneTypeCode,
      isCustomImage,
      isOpen,
      openTime,
      subjectLifeCycle,
      operationInductionId,
      operateTime,
      virtualImageName,
      virtualImage,
      virtualImageDesc,
      characterClassicPhrase,
      sceneSubTypeCode,
      virtualImageViewType
    );
  }

}
